package com.army.study.database;

import ohos.data.orm.OrmObject;
import ohos.data.orm.annotation.Entity;
import ohos.data.orm.annotation.PrimaryKey;

@Entity(tableName = "station")
public class Station extends OrmObject {

    @PrimaryKey(autoGenerate = true)
    private Integer sId;            // 站牌Id 自动生成
    private String stationName;     // 站牌名 "海珠客运站总站",
    private Long parentId;          // 公交车Id
    private String parentName;      // 公交线路
    private String startStation;    // 起始站
    private String endStation;      // 终点站
    private int displayOrder;       // 站牌序号

    public Station() {
    }

    public Station(String stationName, Long parentId, String parentName, String startStation, String endStation, int displayOrder) {
        this.stationName = stationName;
        this.parentId = parentId;
        this.parentName = parentName;
        this.startStation = startStation;
        this.endStation = endStation;
        this.displayOrder = displayOrder;
    }

    public Integer getsId() {
        return sId;
    }

    public void setsId(Integer sId) {
        this.sId = sId;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public int getDisplayOrder() {
        return displayOrder;
    }

    public void setDisplayOrder(int displayOrder) {
        this.displayOrder = displayOrder;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getStartStation() {
        return startStation;
    }

    public void setStartStation(String startStation) {
        this.startStation = startStation;
    }

    public String getEndStation() {
        return endStation;
    }

    public void setEndStation(String endStation) {
        this.endStation = endStation;
    }
}
